/**
 *  * Bestpay.com.cn Inc.
 *  * Copyright (c) 2011-2017 All Rights Reserved.
 *  
 */
package Test;

import TestClass.BgaReverse;
import TestClass.Reverse;

/**
  * bga里面使用
  * @ToString(callSuper = true)
  * @EqualsAndHashCode(callSuper = false)
  * 测试这两个东西的用法
  * @author yedengfeng
  * @version Id: TestBgazhujie.java, v 0.1 2017/1/13 14:01 yedengfeng Exp $$
  */
public class TestBgazhujie {


    public void runTest(){
        BgaReverse bgaReverse =new BgaReverse();
        BgaReverse NbgaReverse =new BgaReverse();
//        Reverse reverse=new Reverse();
        NbgaReverse.setSecond("2");
        NbgaReverse.setFirst("1");
        NbgaReverse.setForth("4");
//        @EqualsAndHashCode(callSuper = false)
//        不判断父类里面的参数是否相等输出为true
//       @EqualsAndHashCode(callSuper = false)需要判断父类是否相等不加下面这行输出为false
//      bgaReverse.setSecond("2");
        bgaReverse.setFirst("1");
        bgaReverse.setForth("4");
        System.out.println(bgaReverse.equals(NbgaReverse));

    }
}